<template>
  <div>
    <el-form ref="form" :model="form" label-width="120px">
      <el-row>
        <el-col :span="12">
          <el-form-item label="角色名称">
            <el-input v-model="form.System_10_20"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <el-form-item style="text-align:center" label-width="0">
        <el-button @click="onSave" type="primary">保存</el-button>
        <el-button @click="close">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { System10 } from "@/api";
export default {
  data() {
    return {
      form: {},
      thisDialog: {}
    };
  },
  //外部属性
  props: {},
  //内部方法
  methods: {
    initPage() {},
    //关闭
    close() {
      this.thisDialog.close();
    },
    async onSave() {
      let res = await System10.Save(this.form);
      res.strMS && this.$message(res.strMS);
      this.thisDialog.$emit("onSys10Save", res, this.form);
      res.MsRbool && this.close();
    }
  },
  //组件
  components: {},
  //初始化 异步加async await
  mounted() {
    this.initPage();
  },
  //计算属性
  computed: {},
  //监视
  watch: {}
};
</script>

<style></style>
